package com.pig4cloud.pig.village.sequence.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.village.api.dto.RewardInfoDTO;
import com.pig4cloud.pig.village.api.request.RewardSearch;
import com.pig4cloud.pig.village.sequence.service.ISequenceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author limbray.li
 * @date 2021/7/29
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/sequence")
@Api(value = "sequence", tags = "事件编号测试")
public class SequenceController {
	@Resource
	private ISequenceService sequenceService;
	@ApiOperation(value = "test")
	@GetMapping("/test")
	public R test() {
		return R.ok(sequenceService.nextNum());
	}
}
